package model

import (
	"gorm.io/datatypes"
	"gorm.io/gorm"
)

type OrderGoods struct {
	gorm.Model
	OrderID  uint           `gorm:"type:int;comment:订单ID"`
	GoodID   uint           `gorm:"type:int;comment:商品ID"`
	Title    string         `gorm:"type:varchar(255);comment:商品标题"`
	Img      datatypes.JSON `gorm:"type:json;comment:商品图片链接"`
	SKUId    uint           `gorm:"type:int;comment:商品SKU ID"`
	Quantity uint           `gorm:"type:int;comment:商品购买数量"`
	Price    string         `gorm:"type:decimal(10,2);comment:商品价格"`
}
